package org.outpoint.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

@JsonIgnoreProperties(value={"hibernateLazyInitializer","handler"})
@Entity
@Table(name="MH_XTYH",schema="PORTAL")
//@Table(name="MH_XTYH",schema="BASE_DATA_XTWYY")
public class UserPassword {

	/*
	 * 主键
	 */
	@Id	
	@Column(length=10)
	private String yhid;
	@Transient
	private String yhxm;	
	
	//密码字段
	@Column(length=32)
	private String yhmm;
	
	//密码刷新日期
	@Temporal(TemporalType.DATE)
	@Column
	private Date mmsxrq;
	
	//新密码
	@Transient
	private String newPassword;
	
	//原密码
	@Transient
	private String oldPassword;
	
	@Transient
	private String yhdm;
	

	/**
	 * @return the newPassword
	 */
	public String getNewPassword() {
		return newPassword;
	}

	/**
	 * @param newPassword the newPassword to set
	 */
	public void setNewPassword(String newPassword) {
		this.newPassword = newPassword;
	}

	/**
	 * @return the oldPassword
	 */
	public String getOldPassword() {
		return oldPassword;
	}

	/**
	 * @param oldPassword the oldPassword to set
	 */
	public void setOldPassword(String oldPassword) {
		this.oldPassword = oldPassword;
	}

	/**
	 * @return the yhid
	 */
	public String getYhid() {
		return yhid;
	}

	/**
	 * @param yhid the yhid to set
	 */
	public void setYhid(String yhid) {
		this.yhid = yhid;
	}

	/**
	 * @return the yhxm
	 */
	public String getYhxm() {
		return yhxm;
	}

	/**
	 * @param yhxm the yhxm to set
	 */
	public void setYhxm(String yhxm) {
		this.yhxm = yhxm;
	}

	/**
	 * @return the yhmm
	 */
	public String getYhmm() {
		return yhmm;
	}

	/**
	 * @param yhmm the yhmm to set
	 */
	public void setYhmm(String yhmm) {
		this.yhmm = yhmm;
	}

	/**
	 * @return the mmsxrq
	 */
	public Date getMmsxrq() {
		return mmsxrq;
	}

	/**
	 * @param mmsxrq the mmsxrq to set
	 */
	public void setMmsxrq(Date mmsxrq) {
		this.mmsxrq = mmsxrq;
	}

	/**
	 * @return the yhdm
	 */
	public String getYhdm() {
		return yhdm;
	}

	/**
	 * @param yhdm the yhdm to set
	 */
	public void setYhdm(String yhdm) {
		this.yhdm = yhdm;
	}
	
	
	
	
}
